﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace HuaJuanAudioNevolDown
{
    public partial class frmSettings : Form
    {
        public frmSettings()
        {
            InitializeComponent();
        }

        private void btnSave_Click(object sender, EventArgs e)
        {
            Service.Instance.IDMPath = txtIDMPath.Text.Trim();
            Service.Instance.DownPath = txtDownPath.Text.Trim();
            MessageBox.Show("保存完成！", "保存", MessageBoxButtons.OK, MessageBoxIcon.Information);
            this.Close();
        }

        private void frmSettings_Load(object sender, EventArgs e)
        {
            txtIDMPath.Text = Service.Instance.IDMPath;
            txtDownPath.Text = Service.Instance.DownPath;
        }
    }
}
